Optimal. Leaf size=77 \[ \frac{1}{2} i b d \text{PolyLog}(2,-i c x)-\frac{1}{2} i b d \text{PolyLog}(2,i c x)+\frac{1}{2} e x^2 \left (a+b \tan ^{-1}(c x)\right )+a d \log (x)+\frac{b e \tan ^{-1}(c x)}{2 c^2}-\frac{b e x}{2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0928198, antiderivative size = 77, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {4980, 4848, 2391, 4852, 321, 203} \[ \frac{1}{2} i b d \text{PolyLog}(2,-i c x)-\frac{1}{2} i b d \text{PolyLog}(2,i c x)+\frac{1}{2} e x^2 \left (a+b \tan ^{-1}(c x)\right )+a d \log (x)+\frac{b e \tan ^{-1}(c x)}{2 c^2}-\frac{b e x}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4980
Rule 4848
Rule 2391
Rule 4852
Rule 321
Rule 203
Rubi steps
\begin{align*} \int \frac{\left (d+e x^2\right ) \left (a+b \tan ^{-1}(c x)\right )}{x} \, dx &=\int \left (\frac{d \left (a+b \tan ^{-1}(c x)\right )}{x}+e x \left (a+b \tan ^{-1}(c x)\right )\right ) \, dx\\ &=d \int \frac{a+b \tan ^{-1}(c x)}{x} \, dx+e \int x \left (a+b \tan ^{-1}(c x)\right ) \, dx\\ &=\frac{1}{2} e x^2 \left (a+b \tan ^{-1}(c x)\right )+a d \log (x)+\frac{1}{2} (i b d) \int \frac{\log (1-i c x)}{x} \, dx-\frac{1}{2} (i b d) \int \frac{\log (1+i c x)}{x} \, dx-\frac{1}{2} (b c e) \int \frac{x^2}{1+c^2 x^2} \, dx\\ &=-\frac{b e x}{2 c}+\frac{1}{2} e x^2 \left (a+b \tan ^{-1}(c x)\right )+a d \log (x)+\frac{1}{2} i b d \text{Li}_2(-i c x)-\frac{1}{2} i b d \text{Li}_2(i c x)+\frac{(b e) \int \frac{1}{1+c^2 x^2} \, dx}{2 c}\\ &=-\frac{b e x}{2 c}+\frac{b e \tan ^{-1}(c x)}{2 c^2}+\frac{1}{2} e x^2 \left (a+b \tan ^{-1}(c x)\right )+a d \log (x)+\frac{1}{2} i b d \text{Li}_2(-i c x)-\frac{1}{2} i b d \text{Li}_2(i c x)\\ \end{align*}
Mathematica [A] time = 0.0040815, size = 83, normalized size = 1.08 \[ \frac{1}{2} i b d \text{PolyLog}(2,-i c x)-\frac{1}{2} i b d \text{PolyLog}(2,i c x)+a d \log (x)+\frac{1}{2} a e x^2+\frac{b e \tan ^{-1}(c x)}{2 c^2}+\frac{1}{2} b e x^2 \tan ^{-1}(c x)-\frac{b e x}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 117, normalized size = 1.5 \begin{align*}{\frac{a{x}^{2}e}{2}}+ad\ln \left ( cx \right ) +{\frac{\arctan \left ( cx \right ) be{x}^{2}}{2}}+b\arctan \left ( cx \right ) d\ln \left ( cx \right ) +{\frac{b\arctan \left ( cx \right ) e}{2\,{c}^{2}}}-{\frac{bex}{2\,c}}+{\frac{i}{2}}bd\ln \left ( cx \right ) \ln \left ( 1+icx \right ) -{\frac{i}{2}}bd\ln \left ( cx \right ) \ln \left ( 1-icx \right ) +{\frac{i}{2}}bd{\it dilog} \left ( 1+icx \right ) -{\frac{i}{2}}bd{\it dilog} \left ( 1-icx \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.15175, size = 158, normalized size = 2.05 \begin{align*} \frac{1}{2} \, a e x^{2} + a d \log \left (x\right ) - \frac{\pi b c^{2} d \log \left (c^{2} x^{2} + 1\right ) - 4 \, b c^{2} d \arctan \left (c x\right ) \log \left (x{\left | c \right |}\right ) + 2 i \, b c^{2} d{\rm Li}_2\left (i \, c x + 1\right ) - 2 i \, b c^{2} d{\rm Li}_2\left (-i \, c x + 1\right ) + 2 \, b c e x -{\left (2 \, b c^{2} e x^{2} + 4 i \, b c^{2} d \arctan \left (0, c\right ) + 2 \, b e\right )} \arctan \left (c x\right )}{4 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{a e x^{2} + a d +{\left (b e x^{2} + b d\right )} \arctan \left (c x\right )}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{atan}{\left (c x \right )}\right ) \left (d + e x^{2}\right )}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x^{2} + d\right )}{\left (b \arctan \left (c x\right ) + a\right )}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]